<template>
	<view class="content">
		<!-- 列表 -->
		<view class="content-hender">
			<view class="content-list" v-for="item in list" :key='item.id'>
				<view class="list-header">
					<view class="left">
						<view><image class="icImage" src="../../static/img/time.png.png" mode=""></image></view>
						<view>{{item.time}}</view>
					</view>
					<view class="right">
						<view v-if="item.status == '1'">
							<view class="status"> 已上报</view>
								<view class="statusColor">
									{{ item.en}}
								</view>
						</view>
						<view v-else>
							<view class="status"> 已完成 </view>
							<view class="statusColor">
								{{ item.en}}
							</view>
						</view>
			
					</view>
				</view>
				<view class="list-name">
					<view>
						姓名:<span>{{ item.name}}</span>
					</view>
					<view class="phone">
						电话:<span>{{ item.phone}}</span>
					</view>
				</view>
			</view>
		</view>
		<!-- button -->
		<view class="footer_button" @click="toaddPeople">
			<view>
				<view class="addTop">
					<image class="addPng" src="../../static/img/add2.png"></image>
					<view class="addName">添加报备</view>
				</view>
				<view class="title">
					مەلۇم قىلىپ ئەنگە ئالدۇرۇش قوشۇش
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import app from '@/util/api.js'
	export default {
		data() {
			return {
				title: 'Hello',
				list:[
					{
						id: '1',
						status: '1',
						en:'يۇقىرىغا يوللاندى',
						author: 'TapTap',
						time: '2021-03-01 15:23',
						phone:'21212121212',
						name:'刘某某'
					},
					{
						id: '2',
						status: '2',
						en:'تاماملاندى',
						author: 'TapTap',
						time: '2021-03-01 15:23',
						phone:'223213232',
						name:'王某某',
						text:'简单刷卡机大家都卡拉艾德曼'
					},
					{
						id: '3',
						status: '2',
						en:'تاماملاندى',
						author: 'TapTap',
						time: '2021-03-01 15:23',
						phone:'223213232',
						name:'王某某',
					    text:'呜呜呜呜呜呜呜呜无无无无无'
					},
					{
						id: '4',
						status: '2',
						en:'تاماملاندى',
						author: 'TapTap',
						time: '2021-03-01 15:23',
						phone:'223213232',
						name:'王某某',
						text:'尺寸尺寸错错错错错错错'
					},
					{
						id: '5',
						status: '2',
						en:'تاماملاندى',
						author: 'TapTap',
						time: '2021-03-01 15:23',
						phone:'223213232',
						name:'王某某',
						text:'热热热热热热若若若若若'
					},
					{
						id: '6',
						status: '2',
						en:'تاماملاندى',
						author: 'TapTap',
						time: '2021-03-01 15:23',
						phone:'223213232',
						name:'王某某',
						text:'尺寸尺寸错错错错错错错'
					},
					{
						id: '7',
						status: '2',
						en:'تاماملاندى',
						author: 'TapTap',
						time: '2021-03-01 15:23',
						phone:'223213232',
						name:'王某某',
						text:'不不不不不不不不不'
					},
					]
			}
		},
		onLoad() {

		},
		methods: {
		// 拒绝弹窗
		 onToast(item){ 
			 app.toast(`${item.text}`)
		 },
		 // 去操作员报备添加
		 toaddPeople(){ 
		 	uni.navigateTo({
		 	    url:'../addPeople/addPeople'
		 	    })
		 }
		}
	}
</script>

<style scoped>
	.content{
		min-height: 100vh;
		background: #F5F5F5;
		font-family: PingFang SC;
		padding-bottom: 110rpx;
	}
	.content-hender{ 
		padding: 20rpx;
	}
	.content-list{ 
		background: #FFFFFF;
		padding: 0rpx 28rpx 20rpx 24rpx;
		margin-top: 20rpx;
	}
	.list-header{ 
		border-bottom: 1px solid #F5F5F5;
		padding: 18rpx 0;
	} 
	.left{ 
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
	}
	.left .icImage{ 
		display: block;
		width: 20rpx;
		height: 20rpx;
		margin-right: 10rpx;
	} 
	.list-header{ 
		display: flex;
		justify-content: space-between;
	}
	.right{
		display: flex;
		flex-direction: column;
	}
	.status{ 
		font-size: 24rpx;
		font-weight: 500;
		color: #FFC03C;
		text-align: right;
	}
	.statusColor{ 
		font-size: 20rpx;
		font-weight: 500;
		color: #FFC03C;
		margin-top: 10rpx;
	}
	.list-name{ 
		font-size: 30rpx;
		font-weight: 500;
		color: #333333;
		padding-top: 29rpx;
	}
	.list-name span{ 
		margin-left: 20rpx;
	}
	.phone{
		margin-top: 30rpx;
	}
	.refuse{ 
		display: flex;
		justify-content: flex-end;
		align-items: center;
		font-size: 24rpx;
		font-weight: 500;
		color: #FF3C3C;
	}
	.refuse .activeImage{
		display: block;
		width: 24rpx;
		height: 24rpx;
		margin-left: 10rpx;
	} 
	.footer_button{ 
		width: 100%;
		padding: 23rpx 0 15rpx 0;
		background: #FFC03C;
		display: flex;
		justify-content: center;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 122;
	}
	.footer_button .addPng{ 
		display: block;
		width: 26rpx;
		height: 26rpx;
		margin-right: 15rpx;
	}
	.addTop{ 
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.addName{ 
		font-size: 30rpx;
		font-weight: 500;
		color: #FFFFFF;
	}
	.title{ 
		font-size: 24rpx;
		font-weight: 400;
		color: #FFFFFF;
	}
</style>